class UrlMappings {

    static mappings = {
    
		"/categories/$category?"(controller:'category', action:'listJob')
		
		"/categories/search/$category?"(controller:'category', action:'search')
	
		"/jobs/$id"(controller:'job', action:'showDetails')
		
      "/$controller/$action?/$id?"{
	      constraints {
			 // apply constraints here
		  }
	  }
	  "500"(view:'/error')
	}
}
